//
//  WBWebBar.h
//  WeatherBar
//
//  Created by Bert on 2024/6/17.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

// 返回按钮图标
typedef NS_ENUM(NSInteger, SHTopBarBackType) {
    /// 行业
    SHTopBarBackTypeWhite,
    // 城市
    SHTopBarBackTypeBlack,
};

@interface WBWebBar : UIView

/** 标题 */
@property (nonatomic, strong) UILabel *var_titleLabel;/** 二维码 beta隐藏 */
@property (nonatomic, strong) UIButton *var_QRCodeButton;
/** 更多 beta隐藏 */
@property (nonatomic, strong) UIButton *var_moreButton;
/** 关闭 */
/** 返回 */
@property (nonatomic, strong) UIButton *var_backButton;
// 关注
@property (nonatomic ,strong) UIButton *var_attentionBtn;

@property (nonatomic ,strong) UIView *var_closeView;
@property (nonatomic, strong) UIButton *var_rightBtn;


/**  右边分享按钮，默认隐藏 */
@property (nonatomic, strong, readonly) UIButton *var_rightShareButton;

@property (nonatomic, strong) UIView *var_lineView;
/// 点击返回回调
@property (nonatomic ,strong) RACSubject *var_backClickSubject;
/// 关闭返回回调
@property (nonatomic ,strong) RACSubject *var_closeClickSubject;
/// 右边按钮回调
@property (nonatomic ,strong) RACSubject *var_rightClickSubject;
/// 关注按钮回调
@property (nonatomic ,strong) RACSubject *var_attentionSubject;

/// 显示左边的关闭按钮
- (void)wb_hideCloseBtn;
/// 设置刚进入时不显示title
- (void)wb_hiddenTitle;
- (void)wb_changeBackgroundViewAlpha:(CGFloat)value;
- (CGFloat)wb_backgroundViewAlpha;
- (void)wb_setBackArrowBlack;
- (void)wb_setAttentionBtn;


@end

NS_ASSUME_NONNULL_END
